package com.hzjq.core.worker

import com.hzjq.core.BlastDelegate
import com.hzjq.core.bean.CapEntity
import com.hzjq.core.callback.Callback

class ScanInnerModeWork : InnerScanModeWork {

    constructor(callback: Callback<MutableList<CapEntity>>?) : super(0,callback)

    override fun onDoWorkStart() {
        onProgressChanged(2, "正在进入检测模式")
    }

    override fun onInnerScanDoNext() {
        onProgressChanged(3, "进入检测模式成功")
        BlastDelegate.getDelegate().postDelay(BlastDelegate.getDelegate().getQueryDelayTime(), Runnable {
            doNext(0)
        })
    }
}